package com.ridaizu.model.form;

import java.util.Date;
import java.util.List;

import javax.faces.bean.SessionScoped;

import com.ridaizu.model.Goods;
import com.ridaizu.model.Model;

@javax.faces.bean.ManagedBean(name = "goodsForm")
@SessionScoped
public class GoodsForm extends Model {

	private static final long serialVersionUID = 1L;

	private String id;

	private String name;

	private String taobaoName;

	private String goodsCode;

	private String barcode;

	private String goodsTypeId;

	private String capacity;

	private String weight;

	private String wholesalePrice;

	private String price;

	private String salesPrice;

	private String summary;

	private String detail;

	private String ingredient;

	private String effect;

	private String suitAgeId;

	private String instructions;

	private String precautions;

	private String goodsUrl;

	private String photoUrl;

	private String thumbnailsUrl;

	private boolean delFlg;

	private String rgtOpt;

	private Date rgtDate;

	private String updOpt;

	private Date updDate;

	private Goods selectedGoods;

	private List<Goods> selectedGoodsList;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getGoodsCode() {
		return goodsCode;
	}

	public void setGoodsCode(String goodsCode) {
		this.goodsCode = goodsCode;
	}

	public String getBarcode() {
		return barcode;
	}

	public void setBarcode(String barcode) {
		this.barcode = barcode;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getTaobaoName() {
		return taobaoName;
	}

	public void setTaobaoName(String taobaoName) {
		this.taobaoName = taobaoName;
	}

	public String getGoodsTypeId() {
		return goodsTypeId;
	}

	public void setGoodsTypeId(String goodsTypeId) {
		this.goodsTypeId = goodsTypeId;
	}

	public String getCapacity() {
		return capacity;
	}

	public void setCapacity(String capacity) {
		this.capacity = capacity;
	}

	public String getWeight() {
		return weight;
	}

	public void setWeight(String weight) {
		this.weight = weight;
	}

	public String getWholesalePrice() {
		return wholesalePrice;
	}

	public void setWholesalePrice(String wholesalePrice) {
		this.wholesalePrice = wholesalePrice;
	}

	public String getPrice() {
		return price;
	}

	public void setPrice(String price) {
		this.price = price;
	}

	public String getSalesPrice() {
		return salesPrice;
	}

	public void setSalesPrice(String salesPrice) {
		this.salesPrice = salesPrice;
	}

	public String getSummary() {
		return summary;
	}

	public void setSummary(String summary) {
		this.summary = summary;
	}

	public String getDetail() {
		return detail;
	}

	public void setDetail(String detail) {
		this.detail = detail;
	}

	public String getIngredient() {
		return ingredient;
	}

	public void setIngredient(String ingredient) {
		this.ingredient = ingredient;
	}

	public String getEffect() {
		return effect;
	}

	public void setEffect(String effect) {
		this.effect = effect;
	}

	public String getSuitAgeId() {
		return suitAgeId;
	}

	public void setSuitAgeId(String suitAgeId) {
		this.suitAgeId = suitAgeId;
	}

	public String getInstructions() {
		return instructions;
	}

	public void setInstructions(String instructions) {
		this.instructions = instructions;
	}

	public String getPrecautions() {
		return precautions;
	}

	public void setPrecautions(String precautions) {
		this.precautions = precautions;
	}

	public String getGoodsUrl() {
		return goodsUrl;
	}

	public void setGoodsUrl(String goodsUrl) {
		this.goodsUrl = goodsUrl;
	}

	public String getPhotoUrl() {
		return photoUrl;
	}

	public void setPhotoUrl(String photoUrl) {
		this.photoUrl = photoUrl;
	}

	public String getThumbnailsUrl() {
		return thumbnailsUrl;
	}

	public void setThumbnailsUrl(String thumbnailsUrl) {
		this.thumbnailsUrl = thumbnailsUrl;
	}

	public boolean isDelFlg() {
		return delFlg;
	}

	public void setDelFlg(boolean delFlg) {
		this.delFlg = delFlg;
	}

	public String getRgtOpt() {
		return rgtOpt;
	}

	public void setRgtOpt(String rgtOpt) {
		this.rgtOpt = rgtOpt;
	}

	public Date getRgtDate() {
		return rgtDate;
	}

	public void setRgtDate(Date rgtDate) {
		this.rgtDate = rgtDate;
	}

	public String getUpdOpt() {
		return updOpt;
	}

	public void setUpdOpt(String updOpt) {
		this.updOpt = updOpt;
	}

	public Date getUpdDate() {
		return updDate;
	}

	public void setUpdDate(Date updDate) {
		this.updDate = updDate;
	}

	public Goods getSelectedGoods() {
		return selectedGoods;
	}

	public void setSelectedGoods(Goods selectedGoods) {
		this.selectedGoods = selectedGoods;
	}

	public List<Goods> getSelectedGoodsList() {
		return selectedGoodsList;
	}

	public void setSelectedGoodsList(List<Goods> selectedGoodsList) {
		this.selectedGoodsList = selectedGoodsList;
	}

	public void clearAll() {
		this.id = null;
		this.name = null;
		this.taobaoName = null;
		this.goodsCode = null;
		this.barcode = null;
		this.goodsTypeId = null;
		this.capacity = null;
		this.weight = null;
		this.wholesalePrice = null;
		this.price = null;
		this.salesPrice = null;
		this.summary = null;
		this.detail = null;
		this.ingredient = null;
		this.effect = null;
		this.suitAgeId = null;
		this.instructions = null;
		this.precautions = null;
		this.goodsUrl = null;
		this.photoUrl = null;
		this.thumbnailsUrl = null;
		this.delFlg = false;
		this.rgtOpt = null;
		this.rgtDate = null;
		this.updOpt = null;
		this.updDate = null;
		this.selectedGoods = null;
		this.selectedGoodsList = null;
		this.goodsTypeId = null;
	}

}
